<template>
    <ul>
        <li>id:{{ id }}</li>
        <li>x:{{ x }}</li>
        <li>y:{{ y }}</li>
    </ul>
</template>

<script lang="ts">
export default {
    name:'NewsDetails'
}
</script>

<script setup lang="ts">
import { useRoute } from 'vue-router';
import { toRefs } from 'vue';
/* 接受参数 */
defineProps(['id','x','y'])

</script>